<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<f:view locale="#{LanguageBean.localeCode}" contentType="text/html">
	<h:head>
		<f:facet name="first">
			<meta content='text/html; charset=UTF-8' http-equiv="Content-Type" />
			<title>#{msg.label_welcome}</title>
		</f:facet>
		<link rel="icon" type="image/ico" href="#{request.contextPath}/icon.gif" />
		<link type="text/css" rel="stylesheet"
			href="#{request.contextPath}/css/default.css" />
		<link type="text/css" rel="stylesheet"
			href="#{request.contextPath}/css/syntaxhighlighter/syntaxhighlighter.css" />
		<ui:insert name="head"></ui:insert>
		<script type="text/javascript">
			$(function() {
				$('.sidebar a').hover(function() {
					$(this).toggleClass('ui-state-hover');
				})
			});
		</script>
		<script type="text/javascript">
			var _gaq = _gaq || [];
			_gaq.push([ '_setAccount', 'UA-12200033-3' ]);
			_gaq.push([ '_trackPageview' ]);
			(function() {
				var ga = document.createElement('script');
				ga.type = 'text/javascript';
				ga.async = true;
				ga.src = ('https:' == document.location.protocol ? 'https://ssl'
						: 'http://www')
						+ '.google-analytics.com/ga.js';
				var s = document.getElementsByTagName('script')[0];
				s.parentNode.insertBefore(ga, s);
			})();
		</script>
	</h:head>
	<h:body>
		<div id="header" class="ui-widget ui-widget-header ui-corner-all">
			<div id="logo">
				<img src="#{request.contextPath}/img/logo_netbrain.png" alt="Logo" />
			</div>
		</div>
		<div id="page" class="ui-widget">
			<div
				class="ui-widget-content ui-corner-bottom ui-helper-clearfix ui-shadow">
				<h:form id="frmMenu">
					<p:menubar autoDisplay="false">
						<p:menuitem value="#{msg.label_home}"
							url="home.faces" icon="home" />
						<p:submenu label="#{msg.menu_config}" icon="settings">
							<p:menuitem value="#{msg.link_install}" url="install.faces" />
							<p:menuitem value="#{msg.link_storage}" url="storage.faces" />
							<p:menuitem value="#{msg.link_webservice}" url="web.faces" />
							<p:menuitem value="#{msg.link_style}" url="style.faces" />
							<p:menuitem value="#{msg.link_language}" url="language.faces" />
							<p:menuitem value="#{msg.link_security}" url="security.faces" />
							<p:menuitem value="#{msg.link_database}" url="database.faces" />
							<p:menuitem value="#{msg.link_typefile}" url="typeFile.faces" />
							<p:menuitem value="#{msg.link_organizations}"
								url="organizations.faces" />
						</p:submenu>
						<p:submenu label="#{msg.menu_usergroup}" icon="users">
							<p:menuitem value="#{msg.link_ldapuser}" url="ldap.faces" />
							<p:menuitem value="#{msg.link_users}" url="users.faces" />
							<p:menuitem value="#{msg.link_groups}" url="groups.faces" />
							<p:menuitem value="#{msg.link_signature}" url="signature.faces" />
							<p:menuitem value="#{msg.link_properties}" url="properties.faces" />
							<p:menuitem value="#{msg.link_profile}" url="profile.faces" />
						</p:submenu>
						<p:submenu label="#{msg.menu_repositories}" icon="storage">
							<p:menuitem value="#{msg.menu_repositories}"
								url="repositories.faces" />
							<p:menuitem value="#{msg.link_records}" url="#" />
							<p:menuitem value="#{msg.link_catalogs}" url="#" />
						</p:submenu>
						<p:submenu label="#{msg.menu_tracing}" icon="tracing">
							<p:menuitem value="#{msg.link_catalogs}" url="#" />
							<p:menuitem value="#{msg.link_servicesmtp}"
								url="servicesmtp.faces" />
							<p:menuitem value="#{msg.link_creation}" url="#" />
							<p:menuitem value="#{msg.link_profile}" url="#" />
							<p:menuitem value="#{msg.link_flowstates}" url="#" />
							<p:menuitem value="#{msg.link_reports}" url="#" />
							<p:menuitem value="#{msg.link_notifiers}" url="#" />
						</p:submenu>
						<p:menuitem value="#{msg.link_capture}" url="capture.faces"
							icon="metadata" />
						<p:menuitem value="#{msg.link_exit}" url="../login.faces" icon="exit" />
					</p:menubar>
				</h:form>
			</div>
			<div id="content">
				<div class="post">
					<ui:insert name="content">...</ui:insert>
				</div>
			</div>
			<div style="clear: both;">&nbsp;</div>
		</div>
		<div id="footer" class="ui-widget ui-widget-header ui-corner-all">
			<p class="copyright"></p>
		</div>
		<ui:insert name="status">
			<p:ajaxStatus onstart="statusDialog.show();"
				onsuccess="statusDialog.hide();" />
			<p:dialog widgetVar="statusDialog"
				header="#{msg.label_connecting}..." draggable="false"
				closable="false">
				<p:graphicImage value="/img/ajaxloadingbar.gif" />
			</p:dialog>
		</ui:insert>
	</h:body>
</f:view>
</html>